Skip to content

config: Add a test for -o with invalid option#13980

Merged
nicoddemus merged 1 commit into
pytest-dev:mainfrom
The-Compiler:test-override-ini-invalid
Nov 21, 2025
Merged

config: Add a test for -o with invalid option#13980
nicoddemus merged 1 commit into
pytest-dev:mainfrom
The-Compiler:test-override-ini-invalid

Conversation

@The-Compiler

Copy link
Copy Markdown
Member

This was ignored until #13830. With that change, it now gets correctly surfaced to the user as a warning (or error with --strict-config), so we should have a test for it.

This was ignored until pytest-dev#13830. With that change, it now gets correctly surfaced
to the user as a warning (or error with --strict-config), so we should have a
test for it.
@The-Compiler The-Compiler added type: selftests a problem in the tests of pytest skip news used on prs to opt out of the changelog requirement labels Nov 18, 2025

@bluetech bluetech left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, that's good to have.

@nicoddemus nicoddemus merged commit 9f992b8 into pytest-dev:main Nov 21, 2025
32 checks passed
@patchback

patchback Bot commented Nov 21, 2025

Copy link
Copy Markdown

Backport to 9.0.x: 💚 backport PR created

✅ Backport PR branch: patchback/backports/9.0.x/9f992b8b61264ef5d010783e0d31b63d859f0071/pr-13980

Backported as #13994

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback Bot pushed a commit that referenced this pull request Nov 21, 2025
This was ignored until #13830. With that change, it now gets correctly surfaced
to the user as a warning (or error with --strict-config), so we should have a
test for it.

(cherry picked from commit 9f992b8)
nicoddemus pushed a commit that referenced this pull request Nov 21, 2025
…nvalid option (#13994)

* config: Add a test for -o with invalid option (#13980)

This was ignored until #13830. With that change, it now gets correctly surfaced
to the user as a warning (or error with --strict-config), so we should have a
test for it.

(cherry picked from commit 9f992b8)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: Florian Bruhin <me@the-compiler.org>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
@The-Compiler

Copy link
Copy Markdown
Member Author

Huh, apparently pre-commit CI never did run on this PR and it broke the CI on main?! Took the freedom to push a follow-up directly in ded73ee.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news used on prs to opt out of the changelog requirement type: selftests a problem in the tests of pytest

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants